export default [
  {
    url: '/auth/login',
    method: 'post',
    response: () => ({
      code: 200,
      message: 'ok',
      data: 'admin-token'
    })
  },
  {
    url: '/auth/user',
    method: 'get',
    response: () => ({
      code: 200,
      message: 'ok',
      data: {
        roles: ['admin'],
        permissions: ['111'],
        name: 'MOmo'
      }
    })
  },
  {
    url: '/route',
    methods: 'get',
    response: () => ({
      code: 200,
      message: 'ok',
      data: [
        {
          path: '/test',
          name: 'testP',
          meta: {
            title: 'page.test.test'
          },
          children: [
            {
              path: '',
              name: 'test',
              component: 'test',
              meta: {
                title: 'page.test.test'
              }
            }
          ]
        }
      ]
    })
  }
];
